@import '../../style/var.scss';
page {
  background-color: #F5F5F5;
}
.my-order {
  position: relative;
  width: 100%;
  height: 100%;
  // overflow: auto;
}

.tab-list {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 80px;
  background-color: #fff;
  z-index: 10;

  .tab-item {
    font-size: 28px;
    font-weight: bold;
    color: rgba(38, 38, 38, 1);

    &.active {
      border-bottom: 6px solid #F8A120;
    }
  }
}

.order-list {
  position: relative;
  top: 80px;
  left: 0;
  padding: 20px 24px;
  width: 100%;
  height: calc(100% - 80px);
  background-color: #F5F5F5;

  .order-card {
    margin-bottom: 20px;
    padding: 0 23px 0 28px;
    width: 100%;
    height: 397px;
    border-radius: 6px;
    background-color: #fff;

    .top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      height: 75px;

      .order-id {
        font-size: 30px;
        font-weight: bold;
        color: rgba(5, 14, 37, 1);
      }

      .order-status {
        font-size: 30px;
        font-weight: bold;
        color: #262626;

        &.ready-pay {
          color: rgba(248, 161, 32, 1);
        }
      }
    }

    .middle {
      margin-bottom: 22px;
      padding: 24px 0;
      display: flex;
      border-bottom: 1px solid #f0f0f0;
      border-top: 1px solid #f0f0f0;

      .goods-image {
        flex-shrink: 0;
        margin-right: 17px;
        width: 166px;
        height: 166px;
      }

      .order-info {
        flex: 1;
        height: 166px;
        line-height: 1;
        overflow: hidden;

        .goods-name {
          margin: 6px 0 17px;
          width: 100%;
          font-size: 30px;
          font-weight: bold;
          color: rgba(51, 51, 51, 1);
          @include oneRowOmit;
        }

        .goods-desc {
          margin-bottom: 50px;
          width: 100%;
          font-size: 26px;
          line-height: 30px;
          font-weight: 300;
          color: rgba(176, 176, 176, 1);
          @include oneRowOmit;
        }

        .goods-specification {
          display: flex;
          justify-content: space-between;
          width: 100%;

          .goods-number {
            font-size: 26px;
            color: rgba(176, 176, 176, 1);
          }

          .goods-price {
            font-size: 30px;
            font-weight: bold;
            color: rgba(46, 46, 46, 1);
          }
        }
      }
    }

    .bottom {
      display: inline-block;
      width: 100%;
      text-align: right;
      // justify-content: flex-end;

      .opt-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 20px;
        width: 160px;
        height: 60px;
        font-size: 26px;
        border: 1px solid rgba(38, 38, 38, 1);
        color: rgba(38, 38, 38, 1);
      }

      .to-pay,
      .check-order {
        border: none;
        background-color: #F8A120;
        color: #FFFFFF;
      }
    }
  }
}

.empty-box {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  .empty {
    width: 130rpx;
    height: 150rpx;
  }

  .tip {
    margin-top: 30rpx;
    font-size: 34rpx;
    font-family: PingFangSC-Regular;
    letter-spacing: 1rpx;
    color: rgba(153, 153, 153, 1);
  }
}
